
<!-- saved from url=(0050)https://hukmat.googlecode.com/svn/trunk/comment.js -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css"></style></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
//eval
function hp_d11(s){var o="",ar=new Array(),os="",ic=0;for(i=0;i&lt;s.length;i++){c=s.charCodeAt(i);if(c&lt;128)c=c^2;os+=String.fromCharCode(c);if(os.length&gt;80){ar[ic++]=os;os=""}}o=ar.join("")+os;return o}

//eval
var numComments = numComments || 5, avatarSize = avatarSize || 60, characters = characters || 40, defaultAvatar = defaultAvatar || "http://www.gravatar.com/avatar/?d=mm", moreLinktext = moreLinktext || " More &amp;raquo;", showAvatar = typeof showAvatar === "undefined" ? true : showAvatar, showMorelink = typeof showMorelink === "undefined" ? false : showMorelink, roundAvatar = typeof roundAvatar === "undefined" ? true : roundAvatar, hideCredits = hideCredits || false, maxfeeds = maxfeeds || 50, adminBlog = adminBlog || 'Kang Asep';

    function kangismet_recent(kangismet) {
        var commentsHtml;
        commentsHtml = "&lt;ul class=\"kangismet_recent\"&gt;";
        ntotal=0;
        for (var i = 0; i &lt; maxfeeds; i++) {
            var commentlink, authorName, authorAvatar, avatarClass;
            if (i == kangismet.feed.entry.length) {
                break;
            }
            if(ntotal&gt;=numComments){
                break;
            }
            var entry = kangismet.feed.entry[i];
            for (var l = 0; l &lt; entry.link.length; l++) {
                if (entry.link[l].rel == "alternate") {
                    commentlink = entry.link[l].href;
                }
            }
            for (var a = 0; a &lt; entry.author.length; a++) {
                authorName = entry.author[a].name.$t;
                authorAvatar = entry.author[a].gd$image.src;
            }

            if (authorName!= adminBlog &amp;&amp; ntotal&lt;numComments){
                ntotal++;
                commentsHtml += "&lt;a href=\"" + commentlink + "\"&gt;&lt;div&gt;";
                commentsHtml += "&lt;li&gt;";
            if (authorAvatar.indexOf("/s1600/") != -1) {
                authorAvatar = authorAvatar.replace("/s1600/", "/s" + avatarSize + "-c/");
            } else if (authorAvatar.indexOf("/s220/") != -1) {
                authorAvatar = authorAvatar.replace("/s220/", "/s" + avatarSize + "-c/");
            } else if (authorAvatar.indexOf("/s512-c/") != -1 &amp;&amp;
                authorAvatar.indexOf("http:") != 0) {
                authorAvatar = "http:" + authorAvatar.replace("/s512-c/", "/s" + avatarSize + "-c/");
            } else if (authorAvatar.indexOf("blogblog.com/img/blank.gif") != -1) {
                if (defaultAvatar.indexOf("gravatar.com") != -1) {
                    authorAvatar = defaultAvatar + "&amp;s=" + avatarSize;
                } else {
                    authorAvatar = defaultAvatar;
                }
            } else {
                authorAvatar = authorAvatar;
            }
            if (showAvatar == true) {
                if (roundAvatar == true) {
                    avatarClass = "avatarRound";
                } else {
                    avatarClass = "";
                }
                commentsHtml += "&lt;div class=\"avatarImage " + avatarClass + "\"&gt;&lt;img class=\"" + avatarClass + "\" src=\"" + authorAvatar + "\" alt=\"" + authorName + "\" width=\"" + avatarSize + "\" height=\"" + avatarSize + "\"/&gt;&lt;/div&gt;";
            }
            commentsHtml += "&lt;b&gt;" + authorName + "&lt;/b&gt;";
            var commHTML = entry.content.$t;
            var commBody = commHTML.replace(/(&lt;([^&gt;]+)&gt;)/gi, "");
            if (commBody != "" &amp;&amp; commBody.length &gt; characters) {
                commBody = commBody.substring(0, characters);
                commBody += "&amp;hellip;";
                if (showMorelink == true) {
                    commBody += "" + moreLinktext + "";
                }
            } else {
                commBody = commBody;
            }
            commentsHtml += "&lt;span&gt;" + commBody + "&lt;/span&gt;";
            commentsHtml += "&lt;/li&gt;&lt;/div&gt;&lt;/a&gt;";
            }

        }

        commentsHtml += "&lt;/ul&gt;";
        var hideCSS = "";
        if (hideCredits == true) {
            hideCSS = "display:none;";
        }
        commentsHtml += "&lt;span style=\"font-size:8px;display:block;text-align:right;" + hideCSS + "\"&gt;dimodifikasi oleh &lt;a href=\"http://afandi.ok-rek.com\" target=\"_blank\"&gt;Afandi Kusuma&lt;/a&gt;&lt;br&gt;dari: way2blogging&lt;/span&gt;";
        document.write(commentsHtml);
    }
</pre></body></html>